package com.yl.androidutilscenter.utils

import android.view.View
import com.blankj.utilcode.util.KeyboardUtils

/**
 * @author
 * @description:
 * @date :2024/3/18
 * @version 1.0.0
 */
object KeyBoardUtils {

    //打开键盘
    fun showKeyBoard(){
        KeyboardUtils.showSoftInput()
    }

    fun showKeyBoard(view: View){
        KeyboardUtils.showSoftInput(view)
    }

    //关闭键盘
    fun closeKeyBoard(view:View){
        KeyboardUtils.hideSoftInput(view)
    }

    //键盘展开和关闭切换
    fun toggleSoftInput(){
        KeyboardUtils.toggleSoftInput()
    }
}